<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>1111</li>
        <li>2</li>
        <li>3</li>
    </ul>
    <script>
        /*
           节点的克隆
              1.元素.cloneNode()             返回当前元素标签
              2.元素.cloneNode(ture)          返回当前元素标签(包括子内容)

             git clone https://gitee.com/lyj503522579/js1011.git

        */
        var ul = document.querySelector('ul');
        var result = ul.cloneNode();
        console.log(result);
        console.log('---------------------------------');
        result = ul.cloneNode(ture);
        console.log(result);
    </script>
</body>
</html>